/**
 * 
 */
package org.cuatrovientos.es;

/**
 * currency converter
 * @author daniel_ancin
 *
 */
public class Converter {
	
	private static final double CHANGE_DOLARS_EUROS = 0.7;
	private static final double CHANGE_EURO_DOLAR = 1.3;


	/**
	 * converts euros to dolars
	 * @param euros
	 * @return dolars
	 */
	public double eurosToDolar (double euros){
		
		double dolar =0d;
		
		dolar=euros*CHANGE_EURO_DOLAR;
		
		return dolar;
	}
	
	/**
	 * converts dolars to euros
	 * @param dolars
	 * @return euros
	 */
	public double dolarToEuros (double dolars){
		
		double euros =0d;
		
		euros=dolars *CHANGE_DOLARS_EUROS;
		
		return euros;
	}


	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
